const { defineConfig } = require('@vue/cli-service')
const AutoImport = require('unplugin-auto-import/webpack')
const Components = require('unplugin-vue-components/webpack')
const { ElementPlusResolver, AntDesignVueResolver} = require('unplugin-vue-components/resolvers')
module.exports = defineConfig({
  publicPath:"./",
  transpileDependencies: true,
  // 关闭eslint校验
  lintOnSave: false,
  configureWebpack:{
    plugins: [
      AutoImport({
        resolvers: [ElementPlusResolver(),AntDesignVueResolver()],
      }),
      Components({
        resolvers: [ElementPlusResolver(),AntDesignVueResolver()],
      }),
    ],
    externals: {
      "BMap": "BMap"
    }
  },

})
